#打包
libmyc.so:mystdio.o mystring.o
	gcc -shared -o $@ $^
%.o:%.c
	gcc -fPIC -c $<

#发布
output:
	mkdir -p ./lib/include
	mkdir -p ./lib/mylib
	cp *.h ./lib/include
	cp *.so ./lib/mylib 
	tar -czf lib.tgz lib

.PHONY:clean
clean:
	rm -f *.o *.so *.tgz

	

